package com.yehui.bean;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

@Service
public class MyApplicationListener implements ApplicationListener {

    public MyApplicationListener(){
        System.out.println("MyApplicationListener======");
    }

    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("MyApplicationListener.onApplicationEvent=======");
    }
}
